<?php
namespace app\daili\controller;
use app\common\controller\Base;
class Common extends Base{
	function __construct(){
		parent::__construct();
    	$user=session(config('keys.daili_user'));
    	if(empty($user)){
    		$this->redirect(url('login/login'));
    	}
    	$this->user=$user;
		$this->assign('user',$user);
		$this->displayNavs($user['id']); //分配菜单
		$this->checkUserHasAuth($user['id']); //权限验证
		$this->assign('site_name',config('setting.admin_title'));
    }    
}
